package com.example.springbootdemo2.service;

import java.util.Arrays;
import java.util.Set;
import java.util.stream.Collectors;

public class MyStarterServcice {
    // 把字符串 存到集合里面并去重
    // 值

    private String config;

    public MyStarterServcice(String config) {
        this.config = config;
    }

    // 处理这个数据、
    public Set<String> getFinalVal(){

        // 1,w,3,4,5,6,6,6,6,6
        String[] split = config.split(",");
        Set<String> collect = Arrays.stream(split).collect(Collectors.toSet());
        // config
        return collect;
    }


}
